package com.le.tester.javaThink.fifth.chapter13_FuncProgramming;

import java.util.function.IntSupplier;

/**
 * createTime：2021/8/6 14:38
 * description：如果违背final的定义，还是编译不过
 */
public class Closure5 {
    IntSupplier makeFun(int x) {
        int i = 0;
        i++;
        x++;
        //return () -> x + i;

        return () -> 1;
    }
}
